﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using FXnaWpfBase;

using NSCore;



namespace NSPresentation
{
    public class TimedGridResultVM:MDTVIViewModel
    {
        public TimedGridResultVM(MDTVIViewModel parent, TimedGridResult timedGridResult)
            : base(parent)
        {

            this._isShowCheck = false;


            this._timedGridResult = timedGridResult;


            this.LoadChildren();



        }


        TimedGridResult _timedGridResult;

        public override string Desc
        {
            get
            {
                return this._timedGridResult.Desc;
            }

        }


        protected override void LoadChildren()
        {
            base.LoadChildren();

            foreach (GridResult item in this._timedGridResult.Childrens.Values)
            {

                GridResultVM vm = new GridResultVM(this,item);


                this.Children.Add(vm);




            }


        }


    }
}
